// Home.scss

:root {
  --card-radius: 16px;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --color-strategy: #ffa940;
  --color-stock: #1890ff;
  --color-trade: #52c41a;
  --color-profile: #722ed1;
  --text-color-light: #fff;
  --text-color-dark: #1a2b3c;
}

.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px;
  background: linear-gradient(135deg, #f0faff, #e0f7fa, #ffffff);
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color-dark);

  // 背景Manbo大字阴影+呼吸动画
  @keyframes breathe {
    0%, 100% {
      opacity: 0.1;
    }
    50% {
      opacity: 0.3;
    }
  }

  &::before {
    content: 'Manbo';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 400px;
    font-weight: 900;
    font-style: italic;
    color: rgba(26, 140, 217, 0.12);
    letter-spacing: 10px;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(26, 140, 217, 0.3));
    animation: breathe 12s ease-in-out infinite;
    z-index: 0;
  }

  .logo-section {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;

    .logo {
      width: 280px;
      height: auto;
      margin-bottom: 20px;
      filter: drop-shadow(0 0 6px rgba(26, 140, 217, 0.8));
      transition: transform 0.3s ease;

      &:hover {
        transform: scale(1.05);
      }
    }

    .welcome-title {
      font-weight: 900;
      font-size: 2.8rem;
      color: #122c42;
      margin-bottom: 12px;
      text-shadow: 0 2px 6px rgba(26, 140, 217, 0.4);
    }

    .welcome-subtitle {
      font-weight: 500;
      font-size: 1.2rem;
      color: #4a5a6a;
      opacity: 0.8;
    }
  }

 .modules-section {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;  // 让模块整体水平居中
    text-align: center;


  .module-card {
    //width: 280px;  // 按钮最大宽度，稍微宽点看着舒服
    height: 140px; // 固定最小高度，避免瘦长
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    border-radius: var(--card-radius);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--card-shadow);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  // 垂直居中内容
    padding: 24px 16px;
  
      // 四个按钮背景色区分，基于 key 的 class
      &.strategy {
        background-color: rgba(255, 169, 64, 0.7);
        border-color: rgba(255, 169, 64, 0.5);
        color: var(--text-color-light);

        .module-icon {
          color: var(--text-color-light);
          filter: drop-shadow(0 0 6px #ffa940);
        }
      }

      &.stock {
        background-color: rgba(24, 144, 255, 0.7);
        border-color: rgba(24, 144, 255, 0.5);
        color: var(--text-color-light);

        .module-icon {
          color: var(--text-color-light);
          filter: drop-shadow(0 0 6px #1890ff);
        }
      }

      &.trade {
        background-color: rgba(82, 196, 26, 0.7);
        border-color: rgba(82, 196, 26, 0.5);
        color: var(--text-color-light);

        .module-icon {
          color: var(--text-color-light);
          filter: drop-shadow(0 0 6px #52c41a);
        }
      }

      &.profile {
        background-color: rgba(114, 46, 209, 0.7);
        border-color: rgba(114, 46, 209, 0.5);
        color: var(--text-color-light);

        .module-icon {
          color: var(--text-color-light);
          filter: drop-shadow(0 0 6px #722ed1);
        }
      }

      &:hover {
        transform: scale(1.07);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
      }

      .module-icon {
        font-size: 36px;
        margin-bottom: 16px;
      }

      h4 {
        margin-bottom: 12px;
        font-weight: 700;
        font-size: 1.3rem;
        line-height: 1.2;
      }

      p {
        font-size: 0.95rem;
        opacity: 0.9;
        line-height: 1.3;
      }
    }
  }

  .footer-note {
    margin-top: 50px;
    position: relative;
    z-index: 1;

    button {
      font-size: 16px;
      color: #666;
      transition: color 0.3s ease;

      &:hover {
        color: #1a8fd9;
        text-decoration: underline;
      }
    }
  }
}
